﻿<html>
<head>
<title>$MODULE_NAME$</title>
<link type="text/css" rel="StyleSheet" href="/_st/my.css" />
<link type="text/css" rel="StyleSheet" href="/css/uSite_forum.css" />
<script type="text/javascript" src="/select/select2.js"></script>
<link type="text/css" rel="StyleSheet" href="/select/select.css" />
<?if($PAGE_ID$='threadpage')?>
<script type="text/javascript" src="/hightlite/js/shCore.js"></script>
<script type="text/javascript" src="/hightlite/js/shBrushJScript.js"></script>
<script type="text/javascript" src="/hightlite/js/codes.js"></script>
<style type="text/css">
@import url(/hightlite/css/shCore.css);
@import url(/hightlite/css/shThemeDefault.css);
.syntaxhighlighter {width: 727px !important; padding:0px !important; border:1px solid #99b7d6 !important; margin:3px -0px 6px -0px !important;}
.imgStat {position:absolute; z-index:3; margin-top:-36px; margin-left:42px;}
</style>
<?endif?>
<script type="text/javascript" src="/js/js_ajax.js"></script>
</head>
<body style="background:#f2f2f2;margin:0;padding:0px;">
$GLOBAL_AHEADER$
<div class="wrapDiz" style="margin-top:10px;">
<table border="0" cellpadding="0" height="30" cellspacing="0" width="100%">
<tr>
<td align="right">
<a class="fNavLink" href="/forum/0-0-1-35" rel="nofollow">Участники</a> &middot;
<a class="fNavLink" href="/forum/0-0-0-36" rel="nofollow">Правила форума</a> &middot;
<a class="fNavLink" href="/forum/0-0-0-6" rel="nofollow">Поиск</a> &middot;
<a class="fNavLink" href="/forum/0-0-0-37" rel="nofollow">RSS</a></td>
</tr>
</table>
$BODY$
</div>
<script type="text/javascript">
$(".forumModerFuncs").css({'text-align' : 'left'});
$(".forumModerFuncsT").removeAttr('width');
$("input.fastNav").hide();
$("input.fastNav").before('<div class="input_submit alt" onclick="$(\'input.fastNav\').click();" style="margin-left:3px; padding:3px 8px;"><b>Ок</b></div>');
$("select.moderOptions, select.fastNav").wrap('<div style="float:left; clear:both; height:21px; width:205px !important;"></div>');
$(".legendBlock").parent('td').parent('tr').parent('tbody').parent('table').hide();
$("td.switch:contains('…')").addClass('switch2');
$(".forumLastPostTd").each(function () {
forum_obn_t = [$(this).find('a:first').attr('href'),$(this).find('a:first').text()]
forum_obn = [$(this).find('a:eq(1)').attr('href'),$(this).find('a:eq(2)').attr('href'),$(this).find('a:eq(2)').text()];
forum_obn_u = [$(this).find('a:eq(3)').attr('href'),$(this).find('a:eq(3)').text()]
$(this).html('<a href="'+forum_obn[0]+'"><img style="margin-bottom:-3px; margin-right:3px; margin-left:2px;" src="/images/last_post.png" border="0" alt=""></a> <a title="К первому непрочитанному сообщению" href="'+forum_obn[1]+'"><b>'+forum_obn[2]+'</b></a><div style="margin-top:2px; color:#676767;">От: <a href="'+forum_obn_u[0]+'">'+forum_obn_u[1]+'</a><img src="/images/user_popup.png" style="margin-bottom:-2px; margin-left:4px; margin-right:4px;" alt=""><a href="'+forum_obn_t[0]+'" style="color:#898989;" title="К последнему сообщению">'+forum_obn_t[1]+'</a></div>');
});
<?if($PAGE_ID$='category')?>
$(".gTableTop:first").html('<a class="catLink" href="/forum">Форум</a> » <a class="catLink" style="color:#888;" href="'+$(".forumNamesBar a:eq(1)").attr('href')+'">'+$(".forumNamesBar a:eq(1)").text()+'</a>');
<?endif?>
<?if($PAGE_ID$='forum' || $PAGE_ID$='recentthreads' || $PAGE_ID$='uthreads')?>
$(".gTableSubTop:contains('Ответы')").attr({'width' : '8%'}); $(".gTableSubTop:contains('Просмотры')").attr({'width' : '8%'}); $(".gTableSubTop:contains('Обновления')").attr({'width' : '18%'});
$(".gTableSubTop:contains('Автор темы')").hide();
$(".threadAuthTd").each(function () {
uIPB = [$(this).find('a.threadAuthorLink').attr('href'),$(this).find('a.threadAuthorLink').text()];
$(this).prev().prev().prev('.threadNametd').find('a:first').after(' <span style="color:#aaa; margin-left:5px;">От <a style="color:#929292;" href="'+uIPB[0]+'">'+uIPB[1]+'</a></span>');
}).hide();
$(".threadLastPostTd").each(function () {
tema_obn = [$(this).find("a.forumLastPostLink").attr('href'),$(this).find("a.forumLastPostLink").text(),$(this).find("a.forumLastPostLink").next().attr('href')];
tema_obn_u = [$(this).find("a.lastPostUserLink").attr('href'),$(this).find("a.lastPostUserLink").text()];
$(this).html('<a href="'+tema_obn[2]+'" title="К первому непрочитанному сообщению"><img src="/images/user_popup.png" style="border:0px; margin-bottom:-1px; margin-right:4px;" alt=""></a><a style="color:#898989;" title="К последнему сообщению" href="'+tema_obn[0]+'">'+tema_obn[1]+'</a><div style="margin-top:2px; color:#676767;">От: <a href="'+tema_obn_u[0]+'">'+tema_obn_u[1]+'</a></div>');
});
$(".postpSwithces").each(function () {
$(this).html($(this).html().split('[').join('').split(']').join('')); $(this).html($(this).html().split('…').join('<span class="SwitPost">…</span>'));
});
$("a.forumModer").parent('td').parent('tr').hide();
$(".switches:first").css({marginBottom: '4px'}); $(".gTableTop:first").html('<a class="catLink" href="/forum">Форум</a> » <a class="catLink" href="'+$(".forumNamesBar a:eq(1)").attr('href')+'">'+$(".forumNamesBar a:eq(1)").text()+'</a> » <a class="catLink" style="color:#888;" href="'+$(".forumNamesBar a:eq(2)").attr('href')+'">'+$(".forumNamesBar a:eq(2)").text()+'</a>');
<?endif?>
</script>
<?if($PAGE_ID$='category')?>
<script type="text/javascript">
$(".gTableSubTop:contains('Темы')").text('Статистика').attr({'width' : '9%'}).next().hide();
$(".forumThreadTd").each(function(){
var datka = [$(this).text(),$(this).next().text()];

dat = function(number, one, two, five) { number = Math.abs(number); number %= 100; if (number >= 5 && number <= 20) {return five;} number %= 10; if (number == 1) {return one;} if (number >= 2 && number <= 4) {return two;} return five;}
$(this).html('<div align="right">'+datka[0]+' '+dat(datka[0], 'тема', 'темы', 'тем')+'</div><div style="margin-top:2px;" align="right">'+datka[1]+' '+dat(datka[1], 'ответ', 'ответа', 'ответов')+'</div>');
}).next().hide();
</script>
<?endif?>
<script type="text/javascript">
$('a.modBut[title^="Изменить"]').html('<img style="margin-left:1px; margin-top:-2px;" src="/images/icon_edit.png" align="absmiddle" border="0">');
$('a.modBut[title^="Удалить"] img').attr({'src' : '/images/icon_delete.png'}).css({'margin-left' : '2px', 'margin-top' : '-2px'}).removeAttr('width').removeAttr('height');
</script>
<style type="text/css">
borisle {border:1px solid #964d60; background:#c47992; padding:15px 3px; vertical-align:top; text-align:center; width:87px; margin:1px; display:inline-block; color:#fff; text-shadow:0px 1px 0px rgba(0,0,0,0.30);}
iWebb {border:1px solid #ccc; background:#f3f3f3; padding:2px 3px; width:610px; margin:1px; display:inline-block; color:#222; text-shadow:0px 1px 0px #fff;}
bolena {border:1px solid #774d96; background:#9f79c4; padding:5px 5px; margin:1px; display:block; color:#fff; text-shadow:0px 1px 0px rgba(0,0,0,0.30);}
</style>
<?if($PAGE_ID$='threadpage')?>
<script type="text/javascript">
$('.posttdMessage').each(function(){
$(this).html($(this).html().split('[iWebb]').join('<iWebb>').split('[/iWebb]').join('</iWebb>'));
$(this).html($(this).html().split('[borisle]').join('<borisle>').split('[/borisle]').join('</borisle>'));
$(this).html($(this).html().split('[bolena]').join('<bolena>').split('[/bolena]').join('</bolena>'));
});
</script>
<?endif?>
<?if($PAGE_ID$='main')?>
<script type="text/javascript">
$(".gTableSubTop:contains('Темы')").text('Статистика').attr({'width' : '9%'}).next().hide();
$(".forumThreadTd").each(function(){
var datka = [$(this).text(),$(this).next().text()];
dat = function(number, one, two, five) { number = Math.abs(number); number %= 100; if (number >= 5 && number <= 20) {return five;} number %= 10; if (number == 1) {return one;} if (number >= 2 && number <= 4) {return two;} return five;}
$(this).html('<div align="right">'+datka[0]+' '+dat(datka[0], 'тема', 'темы', 'тем')+'</div><div style="margin-top:2px;" align="right">'+datka[1]+' '+dat(datka[1], 'ответ', 'ответа', 'ответов')+'</div>');
}).next().hide();
</script>
<?endif?>
<?if($PAGE_ID$='threadpage')?><script type="text/javascript" src="/js/threadpage.js"></script><?endif?>
$GLOBAL_BFOOTER$
</body>
</html>